<div id="UpdateDIV">
<div class="category_title">
    <h2>
        <a href="/">&nbsp;Home</a>   
        &raquo; <label class="normal">Sign Up</label> 
    </h2>
</div>
<br />
<?php
	echo form_open($this->public_model->getBaseSSLUrl() . 'login/createPlayer','name="createPlayerForm"');    	
?>

<table width="100%" class="login" >
	<tbody>
		<tr>
			<td class="heading" colspan="2">&nbsp;Sign Up for <?=$this->public_model->getSystemParameterValue('websiteURL')?></td> 
		</tr>			
		<tr>
			<td align="left" colspan="2">
			<?php if(isset($error) && !empty($error)) { ?>
				<div class="errorText"><?php echo $error ?> </div><div class="clearall"/>
			<?php }?>
			
			<?php echo validation_errors('<div class="errorText">', '</div>'); ?>
			</td>
		</tr>
		
		<tr>
			<td colspan="2">				
			<table class="pageContent" style="width:90%">
			<tbody>
            <tr>
				<td class="col"><span class="colortext">*</span>First Name:</td>
				<td><?php echo form_input('firstname', set_value('firstname'),'size="30" maxlength="100"'); ?></td>
			</tr>
			<tr>
				<td class="col"><span class="colortext">*</span>Last Name:</td>
				<td><?php echo form_input('lastname', set_value('lastname'),'size="30" maxlength="100"'); ?></td>
			</tr>
			<tr>
				<td class="col"><span class="colortext">*</span>Email:</td>
				<td><?php echo form_input('email',  set_value('email'),'size="30" maxlength="50"');  ?></td>
			</tr>
			<tr>
				<td class="col"><span class="colortext">*</span>Password:</td>
				<td><?php echo form_password('password', set_value('password'),'size="30" maxlength="50"'); ?></td>
			</tr>
			<tr>
				<td class="col"><span class="colortext">*</span>Confirm Password:</td>
				<td><?php echo form_password('confirmpassword', set_value('confirmpassword'),'size="30" maxlength="50"'); ?></td>
			</tr>	
			<tr>
                <td></td>
                <td>
                    <input type="checkbox" name="i_agree" value="ok" style="vertical-align: middle;" />&nbsp;I agree to the <a target="_blank" href="/index.php/policy/index?check=terms">Terms of Use</a> and <a target="_blank" href="/index.php/policy/index?check=privacy">Privacy Statement</a>
                    <label id="lblcheckbox"></label>
                </td>
            </tr>
			</tbody>
			</table>			
			</td>
		</tr>
		
		<tr>
			<td width="32%">&nbsp;</td>
			<td class="buttonRow">
				<a class="button"  href="javascript:submitCreatePlayer()">Sign up</a> &nbsp; 
			</td>
		</tr>
        <tr>
            <td></td>
            <td><br /><a href="/login">Already a member?</a></td>
        </tr>
		<tr>
			<td colspan="2" class="spacer">&nbsp;</td>
		</tr>
	</tbody>    	
</table>       
      
  <?php
	echo form_close();
	?>
</div>
<script>
	 
	 var options = {   
            success: submitCreatePlayerResponse  //post-submit callback 
    }; 
     
    // bind to the form's submit event 
    $('[name=createPlayerForm]').submit(function() { 
        $(this).ajaxSubmit(options);      
        return false; 
    });
	
    
</script>

</div>
	 